package Stack;

public class text {
/*    public static void main(String[] args) {
        MyArrayStack stack = new MyArrayStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        stack.push(6);

        stack.printAll();
        System.out.println();


        System.out.println(stack.poll());
        System.out.println(stack.peek());
    }*/

    public static void main(String[] args) {
        MyLinkedListStack stack = new MyLinkedListStack();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        stack.push(4);
        stack.push(5);
        stack.push(6);

        stack.printAll();

        System.out.println(stack.pop());
        System.out.println(stack.peek());
    }
}
